$(function(){
//	获取个人信息
	personal_data(2);
	
//	获取申请信息
	$.ajax({
		type: "post",
		url: url + '/api.php/Up/getApplyInfo',
		data: {"token":token},
		dataType: 'json',
		success: function(result) {
			if(result.code == '0000') {
				var data=result.data;
				
				$(".code_1").html(data.apply_info.up_user.code);
				$(".phone_1").html(data.apply_info.up_user.phone);
				$(".wx_account_1").html(data.apply_info.up_user.wx_account);
				$("#foo").html(data.apply_info.up_user.wx_account);
				$(".level_name").html(data.apply_info.level_after_name);
				if(data.apply_info.up_user.head_icon != ""){
					$(".upg3t3lep img").attr("src",data.apply_info.up_user.head_icon);
				}
				//	复制文本
				var clipboard = new Clipboard(".weixin_ip");
					clipboard.on('success', function(e) { 
					    var msg = e.trigger.getAttribute('aria-label'); 
					    alert(msg);
					    e.clearSelection(); 
					});
			}else{
				isErr(result);
			}
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
			alert("请求失败：" + XMLHttpRequest.status);
		}
	});
})
